//
//  XJCommunitySearchTbView.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/4.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJCommunitySearchTbView.h"

@interface XJCommunitySearchTbView()<UITableViewDelegate,UITableViewDataSource>

@end
@implementation XJCommunitySearchTbView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/




/****/
#pragma mark -  一 初始化
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style{
    self =  [super initWithFrame:frame style:style];
    
    if(self){
        self.dataSource = self;
        self.delegate = self;
    }
    return self;
}

#pragma mark -  二-1 UITableViewDataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.dataArray.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"UITableViewCellId"];
    if(cell == nil){
        cell = [[UITableViewCell alloc] initWithStyle:(UITableViewCellStyleValue1) reuseIdentifier:@"UITableViewCellId"];
    }
    
    cell.imageView.image = [UIImage imageNamed:@"address_edit"];
    cell.textLabel.text = @"测试标题";
    cell.detailTextLabel.text = @"测试小标题";
    
    return cell;
}


#pragma mark -  二-2 UITableViewDelegate
#pragma mark -  三 回调事件



@end
